﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Blog.Helpers
{
    public static class LabelHelper
    {
        public static string GetHuperlink(string text, string controllerName, string actionName, object value, string cssClass)
        {
            TagBuilder tb = new TagBuilder("a");
            tb.Attributes.Add("href", "/" + actionName + "/" + controllerName + "/" + value.ToString());
            tb.InnerHtml = text;
            tb.AddCssClass(cssClass);
            return tb.ToString();
        }
    }
}